Repository navigation
Include what the wasm runtime uses, so it builds with Emscripten 7 - #2633
Merged
Merged
Conversation
Array.h uses std::is_pod and PosixCommon.cpp uses errno, but neither included the header that declares it; both came in through other headers. The libc++ in Emscripten 7 no longer pulls them in that way, so wasm/build_wasm.sh failed with "no template named 'is_pod'" and "use of undeclared identifier 'errno'" in 9 of its 14 sources. Array.h now includes <type_traits> and PosixCommon.cpp includes <errno.h>. Every runtime source compiles with Emscripten 7.0.1 and 5.0.7, with and without -pthread.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Array.husesstd::is_podandPosixCommon.cppuseserrno, but neither includes the header that declares it; both arrived through other headers. The libc++ in Emscripten 7 no longer pulls them in that way, sowasm/build_wasm.shfails in 9 of its 14 sources:Array.hnow includes<type_traits>andPosixCommon.cppincludes<errno.h>.Checked on Linux:
-pthread.build_wasm.shbuilds all four runtime archives with 7.0.1.The bundled emsdk from
fetch_wasm.batwas not tested, but the change can't affect it: it only adds includes.